<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * @author Anh Nguyen <duyanhnguyen@vccorp.vn>
 * @copyright 2012
 * @property CI_DB_active_record $db
 */

class Post_model extends CI_Model
{

    public function postInfo($postId)
    {
        $return = array();
        $this->db->select('*');
        $this->db->from('post');
        $this->db->where(array(
            'id'    =>  $postId
        ));
        $rs = $this->db->get();
        $return = $rs->result_array();
        $rs->free_result();
        return $return;
    }

}

?>
